# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=sub7
pkgver=2.2
pkgrel=4
pkgdesc='A remote administration tool. No further comments ;-)'
url='https://dl.packetstormsecurity.net/trojans/Subseven.2.2.zip'
groups=('blackarch' 'blackarch-windows' 'blackarch-backdoor')
license=('custom:unknown')
arch=('any')
makedepends=('unzip')
source=("https://dl.packetstormsecurity.net/trojans/Subseven.$pkgver.zip")
noextract=("Subseven.$pkgver.zip")
sha512sums=('3229a7ddfcee8e991308feacbe09b52c96b155238f41e668370cc288a567cdd52c3ac48dc76ad42f053ff4104d29e3b7ec3cebcf15e7544270f5201df384dbff')

package() {
  install -dm 755 "$pkgdir/usr/share/windows/$pkgname"

  unzip -P p4ssw0rd "Subseven.$pkgver.zip"

  rm "Subseven.$pkgver.zip"

  cp -a * "$pkgdir/usr/share/windows/$pkgname"
}

